package com.div.tools

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.div.tools.ui.main.SectionsPagerAdapter
import com.google.android.material.tabs.TabLayout
import kotlinx.android.synthetic.main.activity_tab.*

class TabActivity: AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_tab)
        val sectionsPagerAdapter = SectionsPagerAdapter(this, supportFragmentManager)
        view_pager.setAdapter(sectionsPagerAdapter)
        tabs.setTabMode(TabLayout.MODE_SCROLLABLE)
        tabs.setupWithViewPager(view_pager)

    }
}